Skip to content

types!: migrate helmet reply decorators to registration-scoped typing#302

Open
mcollina wants to merge 2 commits intomainfrom
feat/typed-helmet
Open

types!: migrate helmet reply decorators to registration-scoped typing#302
mcollina wants to merge 2 commits intomainfrom
feat/typed-helmet

Conversation

@mcollina
Copy link
Copy Markdown
Member

Summary

Migrate @fastify/helmet decorator typing to the registration-scoped model.

Changes include:

  • reply decorator typing updates in types/index.d.ts;
  • updated type tests asserting decorators on registered instances;
  • README TypeScript guidance updates.

Route option typing remains supported; the migration here focuses on runtime
reply decorator visibility alignment.

Dependency

This PR depends on Fastify core typing migration:

Validation

  • npm run test:typescript
  • npm run lint -- types

Context

Refs fastify/fastify#5061.

@mcollina mcollina added the semver-major Issue or PR that should land as semver major label Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-major Issue or PR that should land as semver major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant